<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<form rel="pagerForm" id="searchForm" onsubmit="return navTabSearch(this);" action="ds/dsPager.do?ACTION=${ACTION}&TODO=${TODO}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						姓名:
						<input type="text" size="10" name="map.empName_L" value="${pager.scMap.empName_L}">
						手机:
						<input type="text" size="10" name="map.mobile_L" value="${pager.scMap.mobile_L}">
						单位:
						<input type="text" size="10" name="map.dwName_L" value="${pager.scMap.dwName_L}">
						职务:
						<input type="text" size="10" name="map.zw_L" value="${pager.scMap.zw_L}">
						职称:
						<input type="text" size="10" name="map.zc_L" value="${pager.scMap.zc_L}"><!-- 
						所在行业:
						<input type="text" size="10" name="map.labelIndustry_L" value="${pager.scMap.labelIndustry_L}">-->
						关注领域:
						<input type="text" size="15" name="map.labelFocusOn_L" value="${pager.scMap.labelFocusOn_L}">
						辅导专长:
						<input type="text" size="10" name="map.labelHelpFor_L" value="${pager.scMap.labelHelpFor_L}"> 
						审核状态:
				    	<select name="map.approveStatus">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('APPROVE_STATUS')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.approveStatus==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
		      		</td>
				</tr>
			</table>
		 		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<ul class="toolBar">
		<li><a class="icon" href='javascript:exportExcel($("#searchForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))' title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
	</ul>
</div>

<div>
	<table class="table" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="137">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="105" orderField="empName" <c:if test='${pager.orderField=="empName"}'>class="${param.orderDirection}"</c:if> >姓名</th>
				<th width="50" orderField="sex" <c:if test='${pager.orderField=="sex"}'>class="${param.orderDirection}"</c:if> >性别</th>
				<th width="105" orderField="mobile" <c:if test='${pager.orderField=="mobile"}'>class="${param.orderDirection}"</c:if> >手机</th>
		    <c:if test="${TODO!='MDF_APPROVE'}">
				<th width="205" orderField="dwName" <c:if test='${pager.orderField=="dwName"}'>class="${param.orderDirection}"</c:if> >工作单位</th>
				<th width="105" orderField="zw" <c:if test='${pager.orderField=="zw"}'>class="${param.orderDirection}"</c:if> >职务</th>
				<th width="105" orderField="zc" <c:if test='${pager.orderField=="zc"}'>class="${param.orderDirection}"</c:if> >职称</th>
				<th width="105" orderField="honor" <c:if test='${pager.orderField=="honor"}'>class="${param.orderDirection}"</c:if> >资质荣誉</th>
				<!-- <th>所在行业</th> -->
				<th orderField="labelFocusOn" <c:if test='${pager.orderField=="labelFocusOn"}'>class="${param.orderDirection}"</c:if> >关注领域</th>
				<th orderField="labelHelpFor" <c:if test='${pager.orderField=="labelHelpFor"}'>class="${param.orderDirection}"</c:if> >辅导专长</th>
				<th width="65">审核状态</th>
				<th width="65">状态</th>
			</c:if>
		    <c:if test="${TODO=='MDF_APPROVE'}">
				<th width="205">原所属单位</th>
				<th width="205">新所属单位</th>
				<th width="105">原职务</th>
				<th width="105">新职务</th>
				<th width="105">原职称</th>
				<th width="105">新职称</th>
				<th width="105">原资质荣誉</th>
				<th width="105">新资质荣誉</th>
		    
		    </c:if>
				<th width="55">专管员A</th>
				<th width="55">专管员B</th>
				<th width="45">排序值</th>
				<th width="215">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td><a target="navTab" href="ds/toDsEditor/${item.id}.do?todo=view&funId=${funId}" rel="dsEditor">${item.empName}</a></td>
					<td>${item.sex=="M"?"男":"女"}</td>
					<td>${item.mobile}</td>
			    <c:if test="${TODO!='MDF_APPROVE'}">
					<td>${item.dwName}</td>
					<td>${item.zw}</td>
					<td>${item.zc}</td>
					<td>${item.honor}</td>
					
					<!-- <td>${item.labelIndustry}</td>-->
					<td>${item.labelFocusOn}</td>
					<td>${item.labelHelpFor}</td>
					<td>
						<!-- <a title="审核日志" width="1200" hight="800" target="dialog" href="common/approveLogPager.do?entityType=Activity&entityId=${item.id}" rel="approveLogPagerDialog">${Dict.getAlias('APPROVE_STATUS',item.approveStatus)}</a> -->
						${Dict.getAlias('APPROVE_STATUS',item.approveStatus)}
					</td>
					<td>${item.activeStatusInt==1?'正常':'已停用'}</td>
				</c:if>
				
			    <c:if test="${TODO=='MDF_APPROVE'}">
					<td style="background-color:#999999">${item.dwName}</td>
					<td style="background-color:#66FF99">${item.dwNameNew}</td>
					<td style="background-color:#999999">${item.zw}</td>
					<td style="background-color:#66FF99">${item.zwNew}</td>
					<td style="background-color:#999999">${item.zc}</td>
					<td style="background-color:#66FF99">${item.zcNew}</td>
					<td style="background-color:#999999">${item.honor}</td>
					<td style="background-color:#66FF99">${item.honorNew}</td>
			    
			    </c:if>
					<td>${Dict.getAlias('USER',item.adminUserId)}</td>	
					<td>${Dict.getAlias('USER',item.adminUserId2)}</td>	
					<td align="left">${item.orderInt}</td>	
					<td>
						<c:if test="${TODO=='EDIT' || TODO=='UPDATE'}">
					    <a title="修改导师" target="navTab" href="ds/toDsEditor/${item.id}.do?ACTION=MODIFY&TODO=${TODO}&funId=${funId}" rel="dsEmpEditor">编辑</a>&nbsp;&nbsp;
					    <c:if test="${TODO=='EDIT'}">
						    <c:if test="${item.activeStatusInt==1}">
							    <a title="确认停用该账号吗?" href="common/updateStatus.do?userType=DsEmp&id=${item.id}&status=0" target="ajaxTodo" rel="dsEmpEditor">停用</a>&nbsp;&nbsp;
						    </c:if>
						    <c:if test="${item.activeStatusInt!=1}">
							    <a title="确认启用该账号吗?" href="common/updateStatus.do?userType=DsEmp&id=${item.id}&status=1" target="ajaxTodo" rel="dsEmpEditor">启用</a>&nbsp;&nbsp;
						    </c:if>
						    <a title="确认重置密码吗?" href="sys/user/resetPwd.do?userType=DsEmp&id=${item.id}" target="ajaxTodo" rel="dsEmpEditor">重置密码</a>&nbsp;&nbsp;
						    </c:if>
					    </c:if>
					    <c:if test="${TODO=='APPROVE'}">
						<a title="审核导师" target="navTab" href="ds/toDsEditor/${item.id}.do?ACTION=VIEW&TODO=APPROVE&funId=${funId}" rel="dsEmpEditor">资格审核</a>&nbsp;&nbsp;
						</c:if>
					    <c:if test="${TODO=='MDF_APPROVE'}">
						<a title="审核导师" target="navTab" href="ds/selfInfoDsEmp.do?id=${item.id}&ACTION=VIEW&TODO=APPROVE&funId=${funId}" rel="dsEmpEditor">信息审核</a>&nbsp;&nbsp;
						</c:if>
						<a title="导师预览" target="_blank" href="m/dsDetail.do?id=${item.id}" >预览</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />